package myannotion.springmvc;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @author sss
 * @date 2020-02-19 14:10
 **/
public class MyDispatchServlet extends AbstractAnnotationConfigDispatcherServletInitializer {

 //   AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext();


    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[]{Rootconfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[]{AppConfig.class};
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{
                "/*"
        };
    }
}
